import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
// import './index.css'npm install normalize.css
import 'normalize.css';
// 其他导入...
import 'antd/dist/reset.css';
import '@ant-design/v5-patch-for-react-19';
// import App from './App.jsx'
import '@/assets/styles/common.less'
import { HashRouter  } from 'react-router-dom'; //引用哈希 还是浏览器路由
import AppRoutes from './route/route'; // 根据实际路径调整
// src/index.js 或 src/App.js
import '@/assets/styles/styles.css'; // 调整为您的实际 CSS 文件路径
// import { unstableSetRender } from 'antd';
// import { createRoot } from 'react-dom/client';

// unstableSetRender((node, container) => {
//   container._reactRoot ||= createRoot(container);
//   const root = container._reactRoot;
//   root.render(node);
//   return async () => {
//     await new Promise((resolve) => setTimeout(resolve, 0));
//     root.unmount();
//   };
// });

createRoot(document.getElementById('root')).render(
  <StrictMode>
    <HashRouter >
      <AppRoutes />
    </HashRouter>
  </StrictMode>
)
